package practice;

import java.util.Comparator;

public class ListSort implements Comparator {
    @Override
    public int compare(Object o1, Object o2) {
        char a = (char) o1;
        char b = (char) o2;

        if((a > 'a' && a < 'z') || (b > 'a' && b < 'z')){
            return -1;
        }else {
            if((a > 'Z' && a < 'Z') ||(b > 'A' && b < 'Z')){
                return -1;
            }else{
                return 1;
            }
        }
    }
}
